package com.cy.pj.common.config;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 读取yml里面所有自定义的属性
 * @author Kiven
 */
@Configuration
@EnableConfigurationProperties(FzProperties.class)
public class FzConfiguration {

    @Bean
    public FzProperties fzProperties(){
        return new FzProperties();
    }

}
